﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Condimar.Entities;

namespace Condimar.Repository
{
    public class DetalleVentaDAO:MasterRepository,IDetalleVentaDAO
    {
        public List<DetalleVenta> GetAllFromDetalleVentaByVentaId(int id)
        {
            var query = from c in context.DetalleVentas.Include("Producto")
                        where c.VentaId.Equals(id)
                        select c;
            return query.ToList();
        }
    }
}
